<div class="container">

    <div class="page-header">
        <div class="row">
            <h1 class="span8">Information</h1>
        </div>
    </div>

    <div class="row">
        <div class="span8">

            <? $this->load->view('parts/object_navigation'); ?>

            <?if($this->session->flashdata('message'))echo '<br>'.success($this->session->flashdata('message'));?>

            <!--INFO FORM -->
            <form action="<?=base_url('object_info/submit_info')?>" method="POST" id="object_info_form" name="object_info_form"> 

                <input type="hidden" value="<?=$object_ID;?>" name="object_ID" id="object_ID">

                <? foreach(config_item('wp_languages') as $key=>$value):?>

                    <div class="group">

                        <span class="group-title"> <?=$value?> </span>

                        <div class="editor-holder">
                            <textarea class="textarea_content" cols="40" rows="10" name="content[]">
                                <?
                                    echo $this->translate->find_field($key,$object['object_info']);
                                ?>
                            </textarea>
                        </div>          

                    </div>

                    <?endforeach;?>

                    <div class="status_info"></div>
                    
                <div class="form-actions">
                    <div class="row">
                        <span class="span8">
                            <button type="submit" class="btn btn-primary" id="submit_info">Save changes</button>
                        </span>
                    </div>
                </div>

            </form>

        </div>
    </div>
</div>
<script type="text/javascript">

    var post_action = '<?=$post_action?>';
</script>